<?php
	$this->widget('common.widgets.PsPlUpload.PsPlUploadWidget', array(
		'url' => array('/tickets/form/attach'),
		'max_file_size' => '50mb',
		'browseButtonText' => '<img src="/images/icons/fugue/magnifier.png" />Select Files...',
		'browseButtonOptions' => array(
			'id' => 'btnAttachBrowse',
			'class' => 'link-button with-icon',
			'style' => 'margin: 10px 0 0 0'
		),
		'filters' => array(
			array(
				"title" => "Image files",
				"extensions" => "jpg,jpeg,gif,png,bmp,tiff"
			),
			array(
				"title" => "Document Files",
				"extensions" => "pdf,doc,docx,xls,xlsx,txt,csv"
			),
		),
		'htmlOptions' => array(
			'class' => 'align-center'
		),
		'uploadButtonText' => true, // do not display
		//'onPostInit' => 'onAttachPostInit',
		//'onFilesAdded' => 'onAttachFileAdded',
		//'onUploadProgress' => 'onAttachUploadProgress',
		//'onUploadComplete' => 'onAttachUploadComplete'
	));
?>